package com.hmall.common.item.client;


import com.hmall.common.dto.Item;
import com.hmall.common.result.PageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 调用商品服务里的商品分页
 */
@FeignClient("itemservice")
public interface ItemClient {

    /**
     * 商品分页
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/item/list")
     PageResult<Item> pageItem(@RequestParam("page") Integer page, @RequestParam("size") Integer size);
}
